from django.urls import path
from . import views

app_name = 'lesson'

urlpatterns = [
    path('',views.index, name='index'),
    path('lesson/<int:lessonid>/', views.lessonpage, name='lesson'),
    path('like/', views.like, name = 'like'),
    path('writecomment/<int:lessonid>/', views.writecomment, name="writecomment"),
    path('handlecomment/<int:lessonid>/', views.handlecomment, name="handlecomment"),
    path('createlesson/', views.createlesson, name="createlesson"),
    path('handlelesson/', views.handlelesson, name='handlelesson'),
    path('search/', views.search, name="search"),
    path('login/', views.login, name='login'),
    path('signup_page/', views.render_signup_page, name='signup_page'),
    path('signup/', views.signup, name='signup'),
    path('about/', views.render_about_page, name='about')
]